<table class="table table-hover">
    <tr class="info">
        <th style="width: 10%">教师姓名</th>
        <th style="width: 10%">科目</th>
        <th style="width: 8%">年级</th>
        <th style="width: 15%">班级</th>
        <th style="width: 8%">布置作业次数</th>
        <th style="width: 8%">书本数量</th>
        <th>书本布置情况</th>
    </tr>
    {% for row in data %}
        <tr>
            <td>{{ row['teacherName'] }}</td>
            <td>{{ row['iSubject'] }}</td>
            <td>{{ row['iCurGrade'] }}</td>
            <td>{{ row['sEBagClass'] }}</td>
            <td>
                <a onclick="window.top.xhTop.showModal({
                        title: '{{ row['teacherName'] }}',
                        size: 'lg',
                        content: xhTool.getFrameString('statsschool/tchBookDetail', {
                        schoolId: {{ schoolId }},
                        teacherId: {{ row['teacherId'] }},
                        startTime: '{{ startTime }}',
                        endTime: '{{ endTime }}'
                        }, 500)
                        });" style="cursor: pointer;color: red;">
                    {{ row['workCount'] }}
                </a>
            </td>
            <td>{{ row['bookUseInfo']|length }}</td>
            <td>
                <a class="btn btn-success btn-sm" role="button" data-toggle="collapse" href="#collapse_{{ row['teacherId'] }}" aria-expanded="false" >
                    展开查看 <i class="fa fa-arrow-down"></i>
                </a>
                <div class="collapse" id="collapse_{{ row['teacherId'] }}">
                    <div class="well">
                        <table class="table table-hover">
                            <tr class="info">
                                <th>
                                    {% if power['edit'] %}
                                        书名
                                    {% else %}
                                        书编号
                                    {% endif %}
                                </th>
                                <th>类型</th>
                                <th>布置次数</th>
                                {#<th>操作</th>#}
                            </tr>
                            {% for book in row['bookUseInfo'] %}
                                <tr>
                                    <td>
                                        {% if power['edit'] %}
                                            {{ book['bookName'] }}
                                        {% else %}
                                            {{ book['bookId'] }}
                                        {% endif %}
                                    </td>
                                    <td>{{ book['libraryType'] }}</td>
                                    <td>{{ book['useTimes'] }}</td>
                                    {#<td>
                                        <a onclick="window.top.xhTop.showModal({
                                            title: '{{ row['teacherName'] }}-{{ book['bookName'] }}',
                                            size: 'lg',
                                            content: xhTool.getFrameString('statsschool/tchBookDetail', {
                                                schoolId: {{ schoolId }},
                                                bookId: '{{ book['bookId'] }}',
                                                teacherId: {{ row['teacherId'] }},
                                                startTime: '{{ startTime }}',
                                                endTime: '{{ endTime }}'
                                            }, 500)
                                        });" style="cursor: pointer;">查看</a>
                                    </td>#}
                                </tr>
                            {% endfor %}
                        </table>
                    </div>
                </div>
            </td>
        </tr>
    {% endfor %}
</table>